//
//  NetWorkEngine.h
//  TriumphInTheSkiesAPP
//
//  Created by iMacOne on 15/11/3.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@class AFHTTPRequestOperationManager;

@protocol NetWorkProtocol <NSObject>

//接口请求成功
- (void)NetWorkDidSuccessful:(NSDictionary *)dic;
//接口请求失败
- (void)NetWorkDidFail:(NSError *)error;

@end

@interface NetWorkEngine : NSObject

@property (nonatomic, assign)id<NetWorkProtocol>delegate;
@property (nonatomic, strong)AFHTTPRequestOperationManager * manager;

//get请求
- (void)get:(NSString *)urlString;
//post请求
- (void)post:(NSString *)urlString paramsString:(NSString *)paramsString;
//停止加载
- (void)stopLoading;

//+ (void)jump:(NSString *)fromText to:(UIViewController *)toVC;


@end
